package com.roomio.notification.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

@Entity
@Table (name="SYS_REMINDER")
public class Reminder  extends Notification {

	@Column (name="USER_ID")
	private Long userReference;

	@Column (name="ORDER_ID")
	private Long orderReference;
	
	@Column (name="SERVICE_ID")
	private Long serviceReference;

	@Column (name="REMINDER_SUBJECT")
	private String subject;
	
	@Column (name="DUE_DATE")
	private Date dueDate;
	
	@Column (name="REMIND_AT")
	private Date remindAt;
	
	@Column (name="BY_MAIL", length=1)
	@Type (type="yes_no")
	private Boolean byMail;

	@Column (name="BY_TEXT", length=1)
	@Type (type="yes_no")
	private Boolean byText;
	
	@Column (name="BY_PHONE", length=1)
	@Type (type="yes_no")
	private Boolean byPhone;

	public Long getUserReference() {
		return userReference;
	}

	public void setUserReference(Long userReference) {
		this.userReference = userReference;
	}

	public Long getOrderReference() {
		return orderReference;
	}

	public void setOrderReference(Long orderReference) {
		this.orderReference = orderReference;
	}

	public Long getServiceReference() {
		return serviceReference;
	}

	public void setServiceReference(Long serviceReference) {
		this.serviceReference = serviceReference;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public Date getDueDate() {
		return dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public Date getRemindAt() {
		return remindAt;
	}

	public void setRemindAt(Date remindAt) {
		this.remindAt = remindAt;
	}

	public Boolean getByMail() {
		return byMail;
	}

	public void setByMail(Boolean byMail) {
		this.byMail = byMail;
	}

	public Boolean getByText() {
		return byText;
	}

	public void setByText(Boolean byText) {
		this.byText = byText;
	}

	public Boolean getByPhone() {
		return byPhone;
	}

	public void setByPhone(Boolean byPhone) {
		this.byPhone = byPhone;
	}
	
	
}
